package com.atguigu.gulimall.product.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@NoArgsConstructor
@AllArgsConstructor
@Data
//2级分类vo
public class Category2Vo {
    private String catalog1Id;//1级分类id
    private List<Category3Vo> catalog3List;//三级子分类
    private String id;//2级分类id
    private String name;

    @NoArgsConstructor
    @AllArgsConstructor
    @Data
    //3级分类vo
    public static class Category3Vo{
        private String catalog2Id;//父分类，2级分类id
        private String id;//3级分类id
        private String name;
    }
}
